package top.zbeboy.resource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {
    /**
     * curl http://localhost:8090/oauth/token -d "grant_type=password&scope=message.read message.write&username=user1&password=password" -u messaging-client:secret
     *
     * curl http://localhost:8090/messages  -H "Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InF5anVBbkJudHdOZ2ZXZjVySDhHREFWWUsrSVIyQ2Q4ZncyeUZuZzhTYnc9In0.eyJleHAiOjE2NDk3OTM2NDMsInVzZXJfbmFtZSI6InVzZXIxIiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9VU0VSIl0sImp0aSI6IjkyNWE0OGRhLTYzMjctNDUwNS1hNmE5LWUyMTcwM2I1ZmNjOCIsImNsaWVudF9pZCI6Im1lc3NhZ2luZy1jbGllbnQiLCJzY29wZSI6WyJtZXNzYWdlLnJlYWQiLCJtZXNzYWdlLndyaXRlIl19.jyJD9biZYjFek3j0a_DCivnLVTnY2NvO3so5D0XMlGnVo9KwX1G_dyK1J2beKAjBOTibIbtGOnTqC2LpuhRw33-0A64bEACvWoCq5Rt2pB65U2MQ07aqGGjCecEKuVURwu0m06BqIvKuVjAtlJIZcDsnTd_ySKNSerNE1Wz-yHhKHuwKLaj_Mgcsb8Nm0FTpBNbREOLx_NhSsgIyhKVUEmsKtumHhdVkchUm-SpEHVC8wed4M6nO9nkS4jqvJLo-3V04qnu_NS3iyNIEY90l1YHQr5TpQn1n-94hyH4ffPVdNiHON9wxt89ICxl8MP450SllvO4XVRAyDM4hdI8iLQ"
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
